Repository navigation
Browser SDK: report silent failures and named goals - #66
Merged
Merged
Conversation
The browser SDK reports failures that throw no error, on by default: a control that does nothing when clicked, repeated clicks on it, and a form the app keeps rejecting. It also has trackGoal(name) for named outcomes. - runtime-browser 1.11.0: detection in the main bundle (7.95 kB brotlied, limit 10 kB). A control is named by data-autter-action or by tag names only; no text, values, ids or classes are read. Controls inside web components or beside a canvas or player are never called dead, and a clipboard copy or in-memory download counts as an effect. - No new event type: signals travel as the existing "outcome" type and goals as a track_event named goal:<name>, so older relays and ingesters keep accepting batches. - otlp-ingester 1.21.0: interaction outcomes get error types DeadClick, RageClick and FormRejected at warning level and a control-v1 fingerprint (group, route template, control key). Compat entry browser-interactions. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
The browser SDK reports failures that throw no error, on by default:
It also adds
trackGoal(name)for named outcomes such as a completed checkout.How it works
outcometype withautter.interaction/autter.controlcontext keys, and goals as atrack_eventnamedgoal:<name>. Older relays and ingesters keep accepting batches.data-autter-action, or by tag names and its index among same-tag siblings. Text, values, ids, classes and hrefs are never read.DeadClick,RageClick,FormRejectedat warning level, and acontrol-v1fingerprint over group, route template and control key. No migration.captureInteractions: false.data-autter-ignoreskips a subtree.Versions
@autter/runtime-browser1.11.0,@autter/otlp-ingester1.21.0, compat entrybrowser-interactions. Nothing is published by this PR.Checks
dist/index.jsis 7.95 kB brotlied (limit 10 kB).Known blind spots
A button whose only effect is sound, a WebSocket message or a storage write can still be reported as dead.
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.